package com.blog.dao;

import com.blog.domain.Blog;

import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage Blog entities.
 * 
 */
public interface BlogDAO extends JpaDao<Blog> {

	/**
	 * JPQL Query - findBlogByTitle
	 *
	 */
	public Set<Blog> findBlogByTitle(String title) throws DataAccessException;

	/**
	 * JPQL Query - findBlogByTitle
	 *
	 */
	public Set<Blog> findBlogByTitle(String title, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllBlogs
	 *
	 */
	public Set<Blog> findAllBlogs() throws DataAccessException;

	/**
	 * JPQL Query - findAllBlogs
	 *
	 */
	public Set<Blog> findAllBlogs(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findBlogByPrimaryKey
	 *
	 */
	public Blog findBlogByPrimaryKey(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findBlogByPrimaryKey
	 *
	 */
	public Blog findBlogByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findBlogByDate
	 *
	 */
	public Set<Blog> findBlogByDate(String date) throws DataAccessException;

	/**
	 * JPQL Query - findBlogByDate
	 *
	 */
	public Set<Blog> findBlogByDate(String date, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findBlogByDateContaining
	 *
	 */
	public Set<Blog> findBlogByDateContaining(String date_1) throws DataAccessException;

	/**
	 * JPQL Query - findBlogByDateContaining
	 *
	 */
	public Set<Blog> findBlogByDateContaining(String date_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findBlogByReader
	 *
	 */
	public Set<Blog> findBlogByReader(Integer reader) throws DataAccessException;

	/**
	 * JPQL Query - findBlogByReader
	 *
	 */
	public Set<Blog> findBlogByReader(Integer reader, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findBlogByContent
	 *
	 */
	public Set<Blog> findBlogByContent(String content) throws DataAccessException;

	/**
	 * JPQL Query - findBlogByContent
	 *
	 */
	public Set<Blog> findBlogByContent(String content, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findBlogById
	 *
	 */
	public Blog findBlogById(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findBlogById
	 *
	 */
	public Blog findBlogById(Integer id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findBlogByTitleContaining
	 *
	 */
	public Set<Blog> findBlogByTitleContaining(String title_1) throws DataAccessException;

	/**
	 * JPQL Query - findBlogByTitleContaining
	 *
	 */
	public Set<Blog> findBlogByTitleContaining(String title_1, int startResult, int maxRows) throws DataAccessException;

}